package com.reef.entity;


import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor

@Entity
@Table(name = "detailed")//设置《详细表》表名
@JsonIgnoreProperties(value = {"hibernateLazyInitializer","handler"})//懒加载
public class Detailed {
@Id //设置主键
@GeneratedValue(strategy = GenerationType.IDENTITY)//主键生成的机制	
   private int did;
   private int personid;//学生编号或者老师编号
   private String dname;//姓名
   private String status;//老师和学生
   private String entertime;//进入图书馆的时间
   private String leavetime;//离开图书馆的时间
   private int res1;
   private int res2;
   private int res3;
   private String res4;
   private String res5;
   private String res6;

} 
